﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WJ.Infrastructure.Util;

namespace NetworkDiskHelper.Web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var objectList = Plugin.Factory.ObjectFactory.GetObjectList;

            List<string> diskName = new List<string>();

            foreach (var item in objectList)
            {
                diskName.Add(item.DiskName);
            }

            ViewBag.diskName = diskName.ToJson();

            return View();
        }
    }
}
